Conversation
- Introduced a new plugin in the dev script to copy the built extension files (JavaScript and CSS) from the dist directory to the project root. This allows for easier development and testing by ensuring that the root files are always up-to-date with the latest builds.
…lay warning toast - Added logic to detect existing canvas instances by class and ID, preventing conflicts. - Implemented a warning toast notification when multiple canvases are detected, advising users to disable conflicting extensions for optimal performance.
WalkthroughThis pull request introduces three interconnected changes: a .gitignore entry for extension.css, a custom esbuild plugin in the dev script that copies compiled files (extension.js and extension.css) from the dist directory to the root directory after successful builds, and logic in the Tldraw component to detect and prevent multiple canvas instances from mounting on the same page while displaying user warnings when conflicts are detected. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
Bug Fixes
Chores